﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="TreeList.aspx.cs" Inherits="DataLib.Accounts.TreeList" %>
<%@ Register TagPrefix="cc1" Namespace="LtpPageControl" Assembly="LtpPageControl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link href="/Css/tab2.css" rel="Stylesheet" type="text/css" />
    <style type="text/css">
        td
        {
            height: 25px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
    <div class="tab2">
	    <h1></h1>
        <table cellspacing="0" cellpadding="5" width="700" align="center" border="0">
        <!--一个表单-->
            <div class="one">
                <td width="100" height="15" style="height: 15px">
                    <div align="right">父类：</div>
                </td>
                <td height="15">
                    <asp:DropDownList ID="listTarget" runat="server" Width="200px" AutoPostBack="True"                           OnSelectedIndexChanged="listTarget_SelectedIndexChanged">
                        <asp:ListItem Value="0" Selected="True">根目录</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </div>
        </table>
        <div class="one">
            <cc1:Page01 ID="Page011" runat="server" Page_Index="treelist.aspx" Page_Add="TreeAdd.aspx"
            Page_Makesql="makesql.aspx"></cc1:Page01>
        </div>
    </div>

<!--                    待更新                    -->

        <table cellspacing="0" cellpadding="5" width="700" align="center" border="0">
            <tr>
                <td>
                    <asp:DataGrid ID="grid" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        Width="100%" DataKeyField="NodeID" PageSize="20" 
                        onitemdatabound="grid_ItemDataBound">
                        <Columns>
                            <asp:BoundColumn DataField="NodeID" ReadOnly="True" HeaderText="编号">
                                <HeaderStyle Width="30px"></HeaderStyle>
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="OrderID" HeaderText="同类排序">
                                <HeaderStyle Width="55px"></HeaderStyle>
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="TreeText" ReadOnly="True" HeaderText="名称">
                                <HeaderStyle Width="120px"></HeaderStyle>
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="comment" ReadOnly="True" HeaderText="描述"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Url" ReadOnly="True" HeaderText="链接"></asp:BoundColumn>
                            <asp:HyperLinkColumn Text="详细" DataNavigateUrlField="NodeID" DataNavigateUrlFormatString="TreeShow.aspx?id={0}"
                                HeaderText="详细">
                                <HeaderStyle Width="30px"></HeaderStyle>
                            </asp:HyperLinkColumn>
                            <asp:HyperLinkColumn Text="修改" DataNavigateUrlField="NodeID" DataNavigateUrlFormatString="TreeModify.aspx?id={0}"
                                HeaderText="修改">
                                <HeaderStyle Width="30px"></HeaderStyle>
                            </asp:HyperLinkColumn>
                           <%-- <asp:HyperLinkColumn Text="删除" DataNavigateUrlField="NodeID" DataNavigateUrlFormatString="TreeDelete.aspx?id={0}"
                                HeaderText="删除">
                                <HeaderStyle Width="30px"></HeaderStyle>
                            </asp:HyperLinkColumn>--%>
                        </Columns>
                        <PagerStyle Visible="False"></PagerStyle>
                    </asp:DataGrid></td>
            </tr>
        </table>
        <cc1:Page02 ID="Page021" runat="server" Page_Index="treelist.aspx"></cc1:Page02>

</asp:Content>
